package day03;
//字符串连接运算符的演示
public class OperDemo5 {
    public static void main(String[] args) {
        int age=22;
        System.out.println("age=");
        System.out.println(age);
        System.out.println("age="+age);
        System.out.println("我今年"+age+"岁了");

        String name="wy";
        System.out.println("大家好，我叫"+name);
        System.out.println("大家好，我叫"+name+"，今年"+age+"岁了");
        //字符串有同化作用，和字符串运算最终会变成为字符串类型的数据
        System.out.println(10+20+""+30);
        System.out.println(""+10+20+30);
        System.out.println(10+20+30+"");

        System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~");


    }
}
